$(function(){

    var windowHeight  = $(window).height();
    console.log(windowHeight);
    $('.sub_main').css({
        height:windowHeight-10
    });


    $('.nav_list>.nav_item').on('click',function(){
        var $this = $(this);
        $('#sub_main_iframe').attr('src',$this.attr('data-src'));
        $('.nav_list>.nav_item').removeClass('selected');
        $this.addClass('selected');
    });

    $('.nav_list>.nav_item').first().click();



});